//
//  ZCNetworkManager.h
//  YZYSDKManagerDemo
//
//  Created by 赵隆杰 on 2024/6/7.
//

#import <Foundation/Foundation.h>

typedef void (^SuccessBlock)(id responseObject);
typedef void (^FailureBlock)(NSString *error);

@interface ZCNetworkManager : NSObject

+ (void)getWithURL:(NSString *)url Params:(NSDictionary *)params success:(SuccessBlock)success failure:(FailureBlock)failure;
+ (void)getWithURL:(NSString *)url Params:(NSDictionary *)params isOpenLoading:(BOOL)isOpenLoading success:(SuccessBlock)success failure:(FailureBlock)failure;

+ (void)postWithURL:(NSString *)url Params:(NSDictionary *)params success:(SuccessBlock)success failure:(FailureBlock)failure;
+ (void)postWithURL:(NSString *)url Params:(NSDictionary *)params isOpenLoading:(BOOL)isOpenLoading success:(SuccessBlock)success failure:(FailureBlock)failure;

+ (NSString *)doEncryptStr:(NSString *)originalStr;

@end
